<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="index.xhtml">
	<ui:define name="conteudo">
		<f:view>

			<h:form id="form">  
  
    <p:growl id="msgs" />  
  
    <p:panel header="Adicionar Loja">  
        <h:panelGrid columns="2" id="grid">  
            <h:outputLabel value="Nome: *" for="txt_nome"></h:outputLabel>  
            <p:inputText id="txt_nome" value="#{LojaBean.loja.nome}" required="true"/>  
              
           <p:commandButton value="Limpar" type="reset"/>  
           
            <p:commandButton id="btn_incluir" value="Incluir" update="books msgs @parent"  
                            action="#{LojaBean.incluirLoja}" > 
                
            </p:commandButton>
              
        </h:panelGrid>  
    </p:panel>
</h:form>
</f:view>
	</ui:define>
</ui:composition>
</html>